<%@ page import="duylinh.NhaCungUng" %>
<g:if test="${flash.message}">
    <div class="message" role="status">${flash.message}</div>
</g:if>

<g:hasErrors bean="${nhaCungUngInstance}">

    <ul class="errors" role="alert">
        <g:eachError bean="${nhaCungUngInstance}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>

<div class="fieldcontain ${hasErrors(bean: nhaCungUngInstance, field: 'ten', 'error')} ">
    <label for="ten">
        <g:message code="nhaCungUng.ten.label" default="Ten" />

    </label>
    <g:textField name="ten" value="${nhaCungUngInstance?.ten}" size="30" />
</div>


<div class="fieldcontain ${hasErrors(bean: nhaCungUngInstance, field: 'mst', 'error')} ">
    <label for="mst">
        <g:message code="nhaCungUng.mst.label" default="Mst" />

    </label>
    <g:textField name="mst" value="${nhaCungUngInstance?.mst}"/>
</div>


<div class="fieldcontain ${hasErrors(bean: nhaCungUngInstance, field: 'diaChi', 'error')} ">
	<label for="diaChi">
		<g:message code="nhaCungUng.diaChi.label" default="Dia Chi"  />
		
	</label>
	<g:textField name="diaChi" value="${nhaCungUngInstance?.diaChi}" size="50"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhaCungUngInstance, field: 'cachThanhToan', 'error')} ">
    <label for="cachThanhToan">
        <g:message code="nhaCungUng.cachThanhToan.label" default="Cach Thanh Toan" />

    </label>
    <g:textField name="cachThanhToan" value="${nhaCungUngInstance?.cachThanhToan}" size="50"/>
</div>

<div class="fieldcontain ${hasErrors(bean: nhaCungUngInstance, field: 'ghiChu', 'error')} ">
	<label for="ghiChu">
		<g:message code="nhaCungUng.ghiChu.label" default="Ghi Chu" />
		
	</label>
    <g:textArea name="ghiChu" rows="20" cols="5">${nhaCungUngInstance?.ghiChu}</g:textArea>
</div>




